<template>
      <div id="nav">
      <router-link  to='/'>组件通讯demo</router-link>
      |
      <router-link to="/computed">computed demo</router-link>
      |
      <router-link  to="/todos">todos</router-link>
      |
      <router-link  to="/data">响应式变量</router-link>
      |
      <router-link  to="/render">renderTracked/renderTriggered</router-link>
      |
      <router-link  to="/error">errorCaptured</router-link>
      |
      <router-link  to="/watch">watch</router-link>
    </div>
  <router-view></router-view>
</template>

<style lang="scss">
// #app {
//   font-family: Avenir, Helvetica, Arial, sans-serif;
//   -webkit-font-smoothing: antialiased;
//   -moz-osx-font-smoothing: grayscale;
//   text-align: center;
//   color: #2c3e50;
// }

// nav {
//   padding: 30px;

//   a {
//     font-weight: bold;
//     color: #2c3e50;

//     &.router-link-exact-active {
//       color: #42b983;
//     }
//   }
// }
#app {
    font-family: Avenir, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-align: center;
    color: #2c3e50;
  }
  
  #nav {
    padding: 30px;
  }
  
  #nav a {
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
  }
  
.router-link-exact-active {
    color:green !important;
    
  }
</style>
